<!-- 写html -->
<template>
  <h2 ref="title2">你好</h2>
  <button @click="showLog">测试</button>
  <Person ref="ren" />
</template>

<!-- 写js或ts -->
<script lang="ts" setup name="App">
  import { ref } from "vue";
  import Person from "./components/Person.vue";

  let title2 = ref();
  let ren = ref();

  function showLog() {
    console.log(ren.value);
  }
</script>

<!-- 写css -->
<style></style>
